From: Jim Blandy Date: Fri, 28 May 1993 08:28:20 +0000 (+0000) Subject: * etags.c: Replace the CPP tangle for alloca with the one from the X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95852 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=5c851ea7d35fa9027b5fb9e52472bdad71c02644;p=emacs.git * etags.c: Replace the CPP tangle for alloca with the one from the autoconf documentation, since that's working elsewhere. --- diff --git a/lib-src/etags.c b/lib-src/etags.c index dd1153e2054..a829fdc35a8 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -35,15 +35,22 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "getopt.h" -#ifdef __GNUC__ -#define alloca __builtin_alloca -#else -#ifdef sparc -#include -#else -extern char *alloca (); -#endif +/* AIX requires this to be the first thing in the file. */ +#ifdef __GNUC__ +#ifndef alloca +#define alloca __builtin_alloca #endif +#else /* not __GNUC__ */ +#if HAVE_ALLOCA_H +#include +#else /* not HAVE_ALLOCA_H */ +#ifdef _AIX + #pragma alloca +#else /* not _AIX */ +char *alloca (); +#endif /* not _AIX */ +#endif /* not HAVE_ALLOCA_H */ +#endif /* not __GNUC__ */ extern char *malloc (), *realloc (); extern char *getenv ();